package com.minigame.common;

import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class ApiExceptionHandler {
    @ExceptionHandler(ApiException.class)
    public ApiResponse<Void> bizExceptionHandler(ApiException ex) {
        return new ApiResponse<>(ex.getCode(), ex.getMessage());
    }
}
